#include "backwidget.h"
#include "ui_backwidget.h"

BackWidget::BackWidget(QWidget *parent) :
    QWidget(nullptr),   //空指针
    ui(new Ui::BackWidget)
{
    ui->setupUi(this); //修改构造函数
    this->login = parent;//把登陆界面的指针传过来
}

BackWidget::~BackWidget()
{
    delete ui;
}

void BackWidget::on_pushButton_clicked()
{
    this->close();
    login->show();
}
